package com.rao.mideng.autoconfigure;

import com.rao.mideng.core.LogBeanPostProcessor;
import org.aspectj.weaver.Advice;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(Advice.class)
public class RaoLogAutoConfiguration {
    @Bean
    public LogBeanPostProcessor logBeanPostProcessor() {
        return new LogBeanPostProcessor();
    }
}
